<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
    <appender name="stdout" class="org.apache.log4j.ConsoleAppender"> 
      <layout class="org.apache.log4j.PatternLayout"> 
        <!-- Pattern to output the caller's file name and line number -->
        <param name="ConversionPattern" value="%5p %d{hh:MM:ss} | %m%n"/>
      </layout> 
    </appender> 
    <appender name="R" class="org.apache.log4j.RollingFileAppender"> 
      <param name="file" value="aercloudclient.log"/>
      <param name="MaxFileSize" value="1MB"/>
      <!-- Keep three backup files -->
      <param name="MaxBackupIndex" value="3"/>
      <layout class="org.apache.log4j.PatternLayout"> 
        <param name="ConversionPattern" value="%p %d{ISO8601} %c - %m%n"/> 
      </layout> 
    </appender> 
    <!-- log all classes in com.aercloud.client package -->
    <logger name="com.aercloud.client" additivity="true">
      <level value="info"/>
      <appender-ref ref="stdout" /> 
    </logger>
    <root> 
      <priority value ="trace" /> 
      <appender-ref ref="R"/>
    </root>
</log4j:configuration>